Skip to content

fix(keyfilter): regex test with the correct value onKeyPress#16085

Merged
cetincakiroglu merged 1 commit intoprimefaces:masterfrom
BGBRWR:issue-16084
Jul 25, 2024
Merged

fix(keyfilter): regex test with the correct value onKeyPress#16085
cetincakiroglu merged 1 commit intoprimefaces:masterfrom
BGBRWR:issue-16084

Conversation

@BGBRWR
Copy link
Contributor

@BGBRWR BGBRWR commented Jul 23, 2024

fixes #16084

@vercel
Copy link

vercel bot commented Jul 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
primeng ⬜️ Ignored (Inspect) Visit Preview Jul 23, 2024 6:43pm

let val = valueCheck + cc;
const selectionStart = (<HTMLInputElement>e.currentTarget).selectionStart || 0;
const selectionEnd = (<HTMLInputElement>e.currentTarget).selectionEnd || 0;
let val = valueCheck.substring(0, selectionStart) + cc + valueCheck.substring(selectionEnd);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not verified this but should lines 234 and 235
|| 0
be replaced with
|| Number.MAX_SAFE_INTEGER

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

KeyFilter: Can't edit value at some cursor positions

3 participants